package cn.wlbw.model;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import java.util.Date;

/**
 * <p>
 * 资源
 * </p>
 *
 * @author ok-fan
 * @since 2019-09-11
 */
@Table("sys_permission")
public class SysPermission {
    /**
     * 主键ID
     */
	@Id
	private Integer id;
    /**
     * 父ID
     */
	@Column("parent_id")
	private Integer parentId;
    /**
     * 资源名称
     */
	@Column
	private String name;
	/**
	 * 资源类型(1:按钮,0:菜单)
	 */
	@Column
	private Integer type;
    /**
     * 资源路径
     */
	@Column
	private String url;
	/**
	 * 资源标识
	 */
	@Column
	private String identification;
    /**
     * 图标
     */
	@Column
	private String icon;
    /**
     * 排序权重
     */
	@Column
	private Integer priority;
    /**
     * 状态(1:有效,0:无效)
     */
	@Column
	private Integer status;
    /**
     * 创建人
     */
	@Column("create_user")
	private String createUser;
    /**
     * 创建时间
     */
	@Column("create_time")
	private Date createTime;
    /**
     * 更新人
     */
	@Column("update_user")
	private String updateUser;
    /**
     * 更新时间
     */
	@Column("update_time")
	private Date updateTime;

	public SysPermission() {
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getIdentification() {
		return identification;
	}

	public void setIdentification(String identification) {
		this.identification = identification;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Integer getPriority() {
		return priority;
	}

	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
}
